home *** CD-ROM | disk | FTP | other *** search
/ Power Tools for Macintosh / Power Tools for Macintosh (SoftBit)(1992).iso / Applications / Alpha 4.01 / Alpha.4.01 / Alpha.4.01.rsrc / STR#_130.txt < prev    next >
Text File  |  1991-10-22  |  6KB  |  307 lines

  1. 
  2.  
  3. 
  4.  
  5. 
  6.  
  7. 
  8.  
  9. 
  10.  
  11. 
  12.  
  13. 
  14.  
  15. 
  16.  
  17. accessed from the title bar of any text window.
  18.  
  19. If 'showRowCol' is on, both of the popup menus can be
  20.  
  21. 
  22.  
  23. mark in any window.
  24.  
  25. The 'gotoMark' function still allows you to go to any
  26.  
  27. of all currently defined marks in the current window.
  28.  
  29. Clicking while depressing the command key pops up a menu
  30.  
  31. 
  32.  
  33. 'sortedIsDefault' var reverses these semantics.
  34.  
  35. the methods menu is sorted alphanumerically. The
  36.  
  37. 'control' key. If the 'shift' key is depressed as well,
  38.  
  39. clicking in a text window while holding down the
  40.  
  41. the definition of that function. The menu is called by
  42.  
  43. Selecting an item from this menu immediately displays
  44.  
  45. 
  46.  
  47. may need to play with the definition for 'funcExpr'.
  48.  
  49. is very different than mine. If this is the case, you
  50.  
  51. to pick up all function definitions if your coding style
  52.  
  53. above, using regular expressions this way is not going
  54.  
  55. function definitions in the current file. As noted
  56.  
  57. string variable 'funcExpr' to create a popup menu of all
  58.  
  59. Alpha also uses the regular expression defined by the
  60.  
  61. 
  62.  
  63. Popup Function Menus
  64.  
  65. 
  66.  
  67. 
  68.  
  69. chosen.
  70.  
  71. corresponding end of the buffer (beginning or end) is
  72.  
  73. If no match of the bound expressions occurs, the
  74.  
  75. 
  76.  
  77. LaTex.
  78.  
  79. 'AlphaBits' file for the regular expressions used for
  80.  
  81. paragraph, as opposed to the above default case. See the
  82.  
  83. case, what we are searching for is actually part of the
  84.  
  85. backslash to be the first line of a paragraph. In this
  86.  
  87. In LaTex, we would like a line beginning with a
  88.  
  89. Things become more complicated, for instance with LaTex.
  90.  
  91. 
  92.  
  93. consisting of only spaces and tabs.
  94.  
  95. These values assume paragraphs are delimited by lines
  96.  
  97. 
  98.  
  99.      "\r[ \t]*"
  100.  
  101. 
  102.  
  103. and the corresponding 'paraEnd' is:
  104.  
  105. 
  106.  
  107.      "[ \t].*\r"
  108.  
  109. 
  110.  
  111. default 'paraBegin' value:
  112.  
  113. determination to be customized. The following is the
  114.  
  115. While a little convoluted, this method allows paragraph
  116.  
  117. 
  118.  
  119. selects the line of the first character matched.
  120.  
  121. searching for the last line of a paragraph, Alpha
  122.  
  123. selects the line of the last character matched. When
  124.  
  125. When searching for the first line of a paragraph, Alpha
  126.  
  127. 
  128.  
  129. from the string variables 'paraBegin' and 'paraEnd'.
  130.  
  131. the current position. The pattern searched for is drawn
  132.  
  133. regular expression searches forward and backward from
  134.  
  135. The boundaries of the paragraphs are determined by
  136.  
  137. Alpha has several routines which manipulate paragraphs.
  138.  
  139. 
  140.  
  141. 
  142.  
  143. identified.
  144.  
  145. Pascal procedures w/ or w/o parameters can be
  146.  
  147. line, the last word in the line is used. Therefore,
  148.  
  149. the function's name. If there is no '(' in the selected
  150.  
  151. word previous to the first '(' in the selected line as
  152.  
  153. bear in mind is that the tag routines use the complete
  154.  
  155. tags for other languages. The only thing you need to
  156.  
  157. of 'C' declarations, you could also use it to generate
  158.  
  159. Note that not only can you customize this to your style
  160.  
  161. 
  162.  
  163. be a set of parenthesis.
  164.  
  165. other than '\t', '#', '\r', '/', ' ', or '@'. There must
  166.  
  167. take up an entire line. It must begin with a character
  168.  
  169. wade through it. The string that we are looking for must
  170.  
  171. complicated, this expression makes sense if you slowly
  172.  
  173. '?' after the last right parenthesis.) Although
  174.  
  175. method definitions. To pick them up, add a question mark
  176.  
  177. (NOTE: the above expressions won't pick up many C++
  178.  
  179. 
  180.  
  181.               ^[^ \t#\r/@][^\r]*\([^\r]*\)$
  182.  
  183. 
  184.  
  185. C function declarations:
  186.  
  187. currently uses the following regular expression to find
  188.  
  189. can change " funcExpr" to suit your own style. Alpha
  190.  
  191. the text. If you declare your functions differently, you
  192.  
  193. function declarations. In other words, we don't parse
  194.  
  195. expression in the string variable "funcExpr" to look for
  196.  
  197. ALPHA's tag generating routines use the regular
  198.  
  199. tag file specified by the "tagFile" string variable.
  200.  
  201. functions. When searching for a tag, ALPHA looks for the
  202.  
  203. ALPHA supports the use of tags to find declarations of
  204.  
  205. 
  206.  
  207. they the following section shows how useful they can be.
  208.  
  209. Regular expressions can be very difficult to master, but
  210.  
  211. 
  212.  
  213. 
  214.  
  215.               (aa|bb)box
  216.  
  217. 
  218.  
  219. 'aabox' or 'bbbox':
  220.  
  221. The following regular expression will match either
  222.  
  223. EXAMPLE:
  224.  
  225. 
  226.  
  227. the matched text.
  228.  
  229. parenthesis that includes the nth left paren is denoted
  230.  
  231. substitution. The substring delimited by the pair of
  232.  
  233. matched string that can be used either later during
  234.  
  235. The parenthesis also define substrings of the total
  236.  
  237. 
  238.  
  239. can be concatenated to create larger expressions.
  240.  
  241. Regular expressions constructed from the above elements
  242.  
  243. 
  244.  
  245.  (...)    The interior elements are grouped together.
  246.  
  247.           matches either 'pete' or 'bob'.
  248.  
  249.           expressions is limited. Ex: (pete|bob)
  250.  
  251.           parenthesis, the extent of the alternated
  252.  
  253.  a|b      matches either a or b. If enclosed in
  254.  
  255.           pattern. Ex: 'ab?' matches 'a' or 'ab'.
  256.  
  257.  ?        zero or one occurrences of the previous
  258.  
  259.           pattern.
  260.  
  261.  +        one or more occurrences of the previous
  262.  
  263.           'abbb' etc.
  264.  
  265.           pattern. Ex: 'ab*' matches 'a', 'ab', 'abb',
  266.  
  267.  *        zero or more occurrences of the previous
  268.  
  269.  \r       carriage return or line break.
  270.  
  271.  \t       tab.
  272.  
  273.           by putting it immediately after the '^'.
  274.  
  275.           the enclosed characters. ']' can be included
  276.  
  277.  [^...]   negated character class, matches anything but
  278.  
  279.           'c', '0', '1', or '2'.
  280.  
  281.           enclosed choices. Ex: '[ac0-2]' matches 'a',
  282.  
  283.           inside classes. Matches one character of the
  284.  
  285.  [...]    character class, can use ranges such as '0-9'.
  286.  
  287.  .        any character except carriage return.
  288.  
  289.  $        end of line.
  290.  
  291.  ^        beginning of line.
  292.  
  293.  c        literal char.
  294.  
  295. 
  296.  
  297. from the following elements:
  298.  
  299. regular expressions. Regular expressions are constructed
  300.  
  301. ALPHA can now search for patterns constructed from full
  302.  
  303. 
  304.  
  305. Using Regular Expressions
  306.  
  307.